package com.worthtech.billportal.dao;

import java.util.List;

import com.worthtech.billportal.bean.AclUserRole;
import com.worthtech.billportal.bean.CsCtrlGroupmodule;
import com.worthtech.billportal.bean.CsCtrlUser;
import com.worthtech.billportal.bean.CsCtrlUsergroup;
import com.worthtech.billportal.exception.SCException;

public interface UserDAO {
	
	public CsCtrlUser getUser(String userId);
	
	public CsCtrlUser getUserByID(String userId);

	public List getUserList(String organizationCode);
	
	public void updateUser(CsCtrlUser user) throws SCException;
	
	public List getListByHQL(String tableName, int startPage, int perNo,
			String orderby);
	
	public String getCount(String tableName, String condition);
	
	public void save(CsCtrlUser u);
	
	public void save(AclUserRole a);
	public void del(CsCtrlGroupmodule c);
	public void save(CsCtrlUsergroup c);
	public void save(CsCtrlGroupmodule c);
	public void update(CsCtrlUsergroup c);
	public void update(CsCtrlGroupmodule c);
	public String getSumBySQL(String list, String tableName, String condition);
	public void del(CsCtrlUser u);
	
	public void del(AclUserRole a);
	
	public String getSeqID(String seqID);
}
